//
//  SHBrandTableViewCell.m
//  UI_CarHome
//
//  Created by dllo on 15/10/28.
//  Copyright (c) 2015年 沈浩. All rights reserved.
//

#import "SHBrandTableViewCell.h"

#import "SHHandle.h"
@implementation SHBrandTableViewCell

- (void)dealloc
{
    [_brandImageView release];
    [_nameLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.brandImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.brandImageView];
    [_brandImageView release];

    
    self.nameLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.nameLabel];
    self.nameLabel.textColor = TEXTCOLOR;
    [_nameLabel release];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.brandImageView.frame = CGRectMake(5 * WID, 5 * HEI, WIDTHS / 7, HEIGHTS - 10 * HEI);
    
    self.nameLabel.frame = CGRectMake(10 * WID + WIDTHS / 7, 0, WIDTHS / 4, HEIGHTS);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
